/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package controller;

import com.opensymphony.xwork2.ActionContext;
import java.util.Map;

/**
 *
 * @author Liem
 */

public class LogoutAction {

    public LogoutAction() {
    }

    public String execute() throws Exception {
        Map session = ActionContext.getContext().getSession();
        if (session.containsKey("USER")) {
            session.remove("USER");
            session.remove("FULLNAME");
        }
        return "success";
    }

}